/*
 * Filename: Inheritance.cpp
 * Author: luozi
 * Date: 2024-05-23
 * Description: This cpp file is used to test two design 
 *              examples of Engineer and Software Engineer 
 *              implemented with inheritance.
 * 
 * Copyright (c) 2024, xx-luozi-xx
 * All rights reserved.
 * 
 * Version: 1.0.0
 * 
 * Code Repository Links: https://gitee.com/xx_luozi_xx/se_lab_240523
 */

#include "Inher_Engineer.h"
#include "Inher_Software_Engineer.h"

#include <iostream>
#include <vector>

int main(){
    std::vector<Inher_Engineer*> engineers;

    Inher_Engineer inher_Engineer;
    Inher_Software_Engineer inher_Software_Engineer;

    engineers.push_back(&inher_Engineer);
    engineers.push_back(&inher_Software_Engineer);
    
    std::cout << "Implementing with Inheritance:" << std::endl;
 
    for(auto itr: engineers){
        std::cout << itr->work() << std::endl;
    }

    return 0;
}